package com.youtills.core.mybatis;

import com.youtills.core.db.DataSourceType;
import com.youtills.core.db.YoutillsDataSource;

import javax.sql.DataSource;
import java.util.Properties;

/**
 * Created by IntelliJ IDEA.
 * User: ravi
 * Date: 8/25/12
 * Time: 11:41 AM
 * To change this template use File | Settings | File Templates.
 */
public class DataSourceFactory {//implements org.apache.ibatis.datasource.DataSourceFactory {

    private String dataSourceType;

    public void setProperties(Properties props) {
        if(props != null){
            dataSourceType = props.getProperty("dataSourceType", "qgldb");
        }
    }

    public DataSource getDataSource() {
        return null; //YoutillsDataSource.getDataSource(DataSourceType.QGLDB);
    }
}
